package com.fqgj.xjd.user.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserAuthFirstRiskDao;
import com.fqgj.xjd.user.entity.UserAuthFirstRiskEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: frank
* Date: 2020-04-24
* Time: 14:28:48.656
*/

@Repository
public class UserAuthFirstRiskDaoImpl extends AbstractBaseMapper<UserAuthFirstRiskEntity> implements UserAuthFirstRiskDao {

    @Override
    public UserAuthFirstRiskEntity getByPushNo(String pushNo) {
        Map<String, Object> params = new HashMap<>();
        params.put("pushNo", pushNo);
        return getSqlSession().selectOne(getStatement("getByPushNo"), params);
    }

    @Override
    public UserAuthFirstRiskEntity getByUserCode(String userCode) {
        Map<String, Object> params = new HashMap<>();
        params.put("userCode", userCode);
        return getSqlSession().selectOne(getStatement("getByUserCode"), params);
    }
}